﻿/*
 * Created by: 
 * Created: Sunday, December 17, 2006
 */

using System;
using System.ComponentModel;
using System.Collections;
using Dune.Business.Domain.Users;
using Edge.Business.Entities;

namespace Dune.Business.Domain.Forum
{

    [Serializable]
//    [Designer("ISC.Common.Web.EntityDesigner.ProductDesignerAttribute")]
    public class Post : EntityWithStat<int>
    {

        #region Fields

        private string text;
        private Theme theme;

        #endregion

        public Post()
        {
        }

        public Post(string text, Theme theme, UserEntity<int> createdBy, DateTime creationTime)
        {
            this.text = text;
            this.theme = theme;
            this.CreatedBy = createdBy;
            this.CreateDate = creationTime;
        }

        #region Properties

        public virtual string Text
        {
            get { return text; }
            set { text = value; }
        }

        public virtual Theme Theme
        {
            get { return theme; }
            set { theme = value; }
        }

     
        #endregion


    }

}
